import request from '@/utils/request'

// 获取所有部门列表
export const _getDepartmentList = () => {
  return request.get('/company/department')
}
// 获取负责人列表
export const _getManagerList = () => {
  return request.get('/sys/user/simple')
}
// 新增部门
export const _addDepartment = (obj) => {
  return request.post('/company/department', obj)
}
export const _getDepartmentDetail = (id) => {
  return request.get(`/company/department/${id}`)
}
export const _updateDepartment = (data) => {
  return request.put(`/company/department/${data.id}`)
}
// 删除某个部门
export const _deleteDepartment = (id) => {
  return request.delete(`/company/department/${id}`)
}
